#include"../../Core/Public/Windows/WindowsHWrapper.h"

#include"..\Public\LaunchEngineLoop.h"

#include"..\..\Core\Public\Windows\WindowsPlatformMisc.h"

FEngineLoop	GEngineLoop;

int32 EnginePreInit(const TCHAR* CmdLine)
{
	int32 ErrorLevel = GEngineLoop.PreInit(CmdLine);

	return(ErrorLevel);
}


#if PLATFORM_WINDOWS
int32 GuardedMain(const TCHAR* CmdLine, HINSTANCE hInInstance, HINSTANCE hPrevInstance, int32 nCmdShow)
#else
int32 GuardedMain(const TCHAR* CmdLine)
#endif
{
	int32 ErrorLevel = EnginePreInit(CmdLine);

	int32 test = FWindowsPlatformMisc::NumberOfCores();

	return ErrorLevel;
}